package com.section4.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/thymeleaf")
public class ThymeleafController {

    @RequestMapping("/hello")
    public String showHello(Model model){
        System.out.println("/thymeleaf/hello");
        model.addAttribute("helloMessage","Hello,welcome to use Thymeleaf!");
        return "hello";
    }
}
